import { getWorkByStatus } from "@/api/taskmanage/work";
import { getAll } from "@/api/system/user";

var workData = [{}];
var userData = [{}]

const taskTypeData = [
  { value: 0, label: "需求", type: "success" },
  { value: 1, label: "BUG", type: "danger" },
  { value: 2, label: "优化", type: "primary" },
  { value: 3, label: "测试", type: "warning" },
];
const statusData = [
  { value: 0, label: "缺勤", type: "danger" },
  { value: 1, label: "正常", type: "success" },
  { value: 2, label: "迟到", type: "warning" },
  { value: 3, label: "早退", type: "warning" },
  { value: 4, label: "请假", type: "info" },
];

// getWorkByStatus().then((res) => {
//   workData = res.data;
// });
// getAll().then((res) => {
//   userData = res.data.map((e: any) => {
//     return {
//       value: e.userName,
//       label: e.userTrueName,
//     };
//   });
// });
export { workData, userData, taskTypeData, statusData };
